home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / S-PYRAMI.H < prev    next >
C/C++ Source or Header  |  1989-12-31  |  3KB  |  144 lines

  1. /*
  2.  *    This version is for PYRAMID (almost BSD 4.2) systems
  3.  *    (also known as Nixdorf Targon 35).
  4.  */
  5.  
  6. extern FILE *popen();
  7.  
  8. /*
  9.  *    Include haeder files containing the following definitions:
  10.  *
  11.  *         off_t, time_t, struct stat
  12.  */
  13.  
  14. #include <sys/types.h>
  15. #include <sys/stat.h>
  16.  
  17. /*
  18.  *    Define if your system has system V like ioctls
  19.  */
  20.  
  21. #undef    HAVE_TERMIO            /* */
  22.  
  23. /*
  24.  *    Define to use terminfo database.
  25.  *    Otherwise, termcap is used
  26.  */
  27.  
  28. #undef    USE_TERMINFO            /* */
  29.  
  30. /*
  31.  *    Specify the library (or libraries) containing the termcap/terminfo
  32.  *    routines.
  33.  *
  34.  *    Notice:  nn only uses the low-level terminal access routines
  35.  *    (i.e. it does not use curses).
  36.  */
  37.  
  38. #define TERMLIB    -ltermlib
  39.  
  40. /*
  41.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  42.  */
  43.  
  44. #include <strings.h>
  45.  
  46. /*
  47.  *    Define if a signal handler has type void (see signal.h)
  48.  */
  49.  
  50. #undef    SIGNAL_HANDLERS_ARE_VOID    /* */
  51.  
  52. /*
  53.  *    Define MICRO_ALARM to timeout in 0.1 seconds if possible
  54.  */
  55.  
  56. #define MICRO_ALARM()    alarm(1)    /* could use setitimer ... */
  57.  
  58. /*
  59.  *    Define if your system has BSD like job control (SIGTSTP works)
  60.  */
  61.  
  62. #define HAVE_JOBCONTROL            /* */
  63.  
  64. /*
  65.  *    Define if your system provides the "directory(3X)" access routines
  66.  *
  67.  *    If true, include the header file(s) required by the package below
  68.  *    (remember that <sys/types.h> or equivalent is included above)
  69.  *    Also typedef Direntry to the proper struct type.
  70.  */
  71.  
  72. #define    HAVE_DIRECTORY            /* */
  73.  
  74. #include <sys/dir.h>            /* BSD */
  75.  
  76. typedef struct direct Direntry;        /* BSD */
  77.  
  78. /*
  79.  *    Define if your system has a mkdir() library routine
  80.  */
  81.  
  82. #define    HAVE_MKDIR            /* */
  83.  
  84. /*
  85.  *    Define if your system provides a BSD like gethostname routine.
  86.  *    Otherwise, define HAVE_UNAME if uname() is avaiable.
  87.  */
  88.  
  89. #define    HAVE_GETHOSTNAME    /* BSD systems */
  90.  
  91. /*
  92.  *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  93.  *    membership capability (BSD style).
  94.  */
  95.  
  96. #define HAVE_MULTIGROUP
  97.  
  98. /*
  99.  *    Define DETATCH_TERMINAL to be a command sequence which 
  100.  *    will detatch a process from the control terminal
  101.  *    Also include system files needed to perform this HERE.
  102.  *    If not possible, just define it (empty)
  103.  */
  104.  
  105. #include <sys/file.h>    /* for O_RDONLY */
  106. #include <sys/ioctl.h>    /* for TIOCNOTTY */
  107.  
  108. #define    DETATCH_TERMINAL \
  109.     { int t = open("/dev/tty", O_RDONLY); \
  110.       if (t >= 0) ioctl(t, TIOCNOTTY, (int *)0), close(t); }
  111.  
  112.       
  113. /* 
  114.  *    Specify where the Bourne Shell is.
  115.  */
  116.  
  117. #define SHELL        "/bin/sh"
  118.  
  119. /*
  120.  *    Specify the default mailer to be invoked by nnmail
  121.  */
  122.  
  123. #define    MAILX    "/usr/.ucbucb/Mail"        /* BSD */
  124.  
  125.  
  126. /*
  127.  *    Specify the default pager & options.
  128.  */
  129.  
  130. #define    PAGER        "more"
  131.  
  132. /*
  133.  *    Specify the default print command and options.
  134.  */
  135.  
  136. #define    PRINTER        "lpr -p -JNN-print"
  137.  
  138.  
  139. /*
  140.  *    Define the maximum length of any pathname that may occur
  141.  */
  142.  
  143. #define    FILENAME     256
  144.